package net.com.sunkey.messagehandler;

import java.nio.ByteBuffer;

import net.com.sunkey.protobuf.Protocol;
import net.com.sunkey.serverlogic.Message;
import net.com.sunkey.serverlogic.Server;

public class UserNotFoundResponseHandler {
	/* (non-Javadoc)
	 * @see com.sunkey.tdserver.messagehandler.MessageHandler#invoke(java.lang.Object, org.jboss.netty.channel.Channel)
	 */
	//@Override
	public static int invoke(Object obj, Object channel) throws Exception{
		System.out.println("["+channel.hashCode()+"]["+ Protocol.MessageHandler.UserNotFoundResponse_VALUE+"]UserNotFoundResponse");
		Server.sendResponse(Protocol.MessageHandler.UserNotFoundResponse_VALUE, ByteBuffer.wrap(Message.toByteArray((int)obj)), channel);
		return Protocol.MessageHandler.UserNotFoundResponse_VALUE;
	}
}
